﻿using System;
using System.Collections.Generic;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PharmacyRepositoy
{
    public class MasterRepository
    {
        public MasterRepository()
        {
            if (_Context == null)
            {
                _Context = new ContextPharmacy();
                _objectContext = ((IObjectContextAdapter)_Context).ObjectContext;
            }
        }
        private ContextPharmacy _Context;
        protected ContextPharmacy Context
        {
            get { return _Context; }
        }

        private ObjectContext _objectContext;
        protected ObjectContext ObjectContext
        {
            get { return _objectContext; }
        }
    }
}
